package com.example.role_based_permission_control.service.impl;

import com.example.role_based_permission_control.dao.RoleMapper;
import com.example.role_based_permission_control.entity.dto.Role;
import com.example.role_based_permission_control.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李云龙
 * @program: role_based_permmsion_control
 * @description:
 * @date 2024-09-01 16:27:11
 */
@Service
public class RoleService implements IRoleService {
    @Autowired(required = false)
    private RoleMapper roleMapper;

    @Override
    public List<Role> getUserRoles(int userId) {
        return roleMapper.getUserRoles(userId);
    }
}
